<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>

<!-- 引入基础的css和js -->
<link rel="import" href="../material/import.html" id="import"/>
<script>
var permissionType={
	add:"sysbasedatatype:save",update:"sysbasedatatype:update",delete:"sysbasedatatype:delete",
	submit:"sysbasedatatype:submit",auditpass:"sysbasedatatype:auditpass",auditnopass:"sysbasedatatype:auditnopass"	
};
</script>
</head>
<body>
<div id="app" v-cloak class="content-div">

    <!-- 列表显示区间 start -->
	<div v-show="showList">	     	    
	    <!-- 查询块 start -->
	     <search-component>	                    
                 <search-input v-model="search.baseTypeName" :field="sysBaseDataTypeField.baseTypeName" ></search-input>
				 <search-submit :field="pageData.query" @searchsubmit="query"></search-submit>
		 </search-component>	          
	    <!-- 查询块 end -->  
	    
	   <!-- 列表table显示 start -->	
		<permission @add="add" @update="update" @del="del" @submit="audit(1)" @auditpass="audit(2)" @auditnopass="audit(3)"></permission>
	    <table id="table"></table>
	    <!-- 列表table显示end -->
	</div>
    <!-- 列表显示区间 end -->
	
	<!-- 编辑内容显示区间 start -->
    <div v-show="!showList">
	    <defaultform  :title="title" @reload="reload" @submit="saveOrUpdate">
                <rojao-input :field="sysBaseDataTypeField.baseTypeName" name="baseTypeName" v-model="sysBaseDataType.baseTypeName" :placeholder="sysBaseDataTypeField.baseTypeName" ></rojao-input>		
                <rojao-input :field="sysBaseDataTypeField.baseTypeKey" name="baseTypeKey" v-model="sysBaseDataType.baseTypeKey" :placeholder="sysBaseDataTypeField.baseTypeKey" ></rojao-input>		
                <!-- <myframe-input :field="sysBaseDataTypeField.type" name="type" v-model="sysBaseDataType.type" :placeholder="sysBaseDataTypeField.type" ></myframe-input> -->
                <select-input :field="sysBaseDataTypeField.parentId" name="parentId" v-model="sysBaseDataType.parentName" 
	        	        :placeholder="sysBaseDataTypeField.parentId" @assiot="sysBaseDataTypeAssiot"></select-input>
                <rojao-textarea :field="sysBaseDataTypeField.describe" name="describes" v-model="sysBaseDataType.describes"></rojao-textarea>
	    </defaultform>
	</div>
	<!-- 编辑内容显示区间 end -->	    
</div>

<script src="../sys/js/sysbasedatatype.js"></script>
</body>
</html>